/**
 *
 */
class Parent{
    constructor(name,age) {
        this.name = name
        this.age = age
    }
    getName(){
        console.log(this.name)
    }
}


class Child extends Parent{
    constructor(name,age,gender) {
        super(name,age);
        this.gender = gender
    }
}

const child  = new Child('ck',19,'male')
console.log(child)
child.getName()
